﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class mpPagina : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {

        string path = HttpContext.Current.Request.Url.AbsolutePath;
        if (path.Contains("/Login.aspx") || (path.Contains("/Usuarios.aspx") && Session["username"]==null))
        {
            SalirSistemaPAW.Visible = false;
        }
    }

    protected void SalirSistemaPAW_Click(object sender, EventArgs e)
    {
        Session["username"] = null;
        Response.Redirect("/Login.aspx");
    }

    /*protected void btnAgregar_Click(object sender, EventArgs e)
    {
        
    }

    protected void btnModificar_Click(object sender, EventArgs e)
    {
        
    }

    protected void btnEliminar_Click(object sender, EventArgs e)
    {
        
    }

    protected void btnConsultar_Click(object sender, EventArgs e)
    {

    }

    protected void btnCancelar_Click(object sender, EventArgs e)
    {

    }
    */
}
